Sybase InfoMaker 11.5, CD, Win, ENG Especificações Página 184

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 828
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 183
1 2 ... 179 180 181 182 183 184 185 186 187 188 189 ... 827 828

Comentários a estes Manuais

Sem comentários