Sybase InfoMaker 11.5, CD, Win, ENG Especificaciones Pagina 184

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 828
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 183
Using Quick Select
162 InfoMaker
SQL expression examples
The first six examples in this section all refer to a grid that contains three
columns from the employee table:
emp_id, dept_id, and salary.
Example 1
The expression <50000 in the Criteria row in the salary column in the grid
retrieves information for employees whose salaries are less than $50,000.
The
SELECT statement that InfoMaker creates is:
SELECT employee.emp_id,
employee.dept_id,
employee.salary
FROM employee
WHERE employee.salary < '50000'
Example 2
The expression 100 in the Criteria row in the DeptId column in the grid
retrieves information for employees who belong to department 100.
The
SELECT statement that InfoMaker creates is:
SELECT employee.emp_id,
employee.dept_id,
employee.salary
FROM employee
WHERE employee.dept_id ='100'
Example 3
The expression >300 in the Criteria row in the EmpId column and the
expression
<50000 in the Criteria row in the Salary column in the grid retrieve
information for any employee whose employee ID is greater than 300 and
whose salary is less than $50,000.
Vista de pagina 183
1 2 ... 179 180 181 182 183 184 185 186 187 188 189 ... 827 828

Comentarios a estos manuales

Sin comentarios