DBMS lab 1
DBMS lab 1
DBMS LAB 01
1. Display the last name concatenated with the job ID, separated by a comma and space, and name
the column Employee and Title.
2. Create a query to display all the data from the EMPLOYEES table. Separate each column by a
comma. Name the column THE_OUTPUT.
3. Show the structure of the DEPARTMENTS table. Select all data from the table.
4. Show the structure of the EMPLOYEES table. Create a query to display the last name, job code,
hire date, and employee number for each employee, with employee number appearing first.
5. Create a query to display unique job codes from the EMPLOYEES table.
6. There are four coding errors in this statement. Can you identify them?
SELECT employee_id, last_name sal x 12 ANNUAL SALARY FROM employees;
Missing AS keyword