![]() |
|
![]() |
| LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Moderator Join Date: Feb 2006
Posts: 1,413
Thanks: 0
Thanked 17 Times in 14 Posts
Rep Power: 21 | hello Identify the 4 coding errors in the above code SELECT employee_id , last_name sal*12 ANNUAL SALARY FROM EMPLOYEES ; SOLUTIOn error 1: There shud e a comma after Last_name error 2: AnnUAL SALARY SPACE SHUD IS REMOVED OR REPRESETED in Annual_salary or " Annual Salary" Error 3: sal shud e given as table field name Error 4: * is bnot there X is there BYE SOWMYA Edited by: sowmya571
__________________ http://livetolead.blogspot.com/ all the best Arise Awake N Stop Not Until Ur Goal Is Reached! |
| | |
| | #2 (permalink) |
| Junior Member Join Date: May 2006 Location: India
Posts: 22
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 4 | Hii Friends, I have a table Employee with the following fields.... Emp_Id Emp_Name Dept_Id Sal.........etc. Now I want a query to display the Employee Id, Employee Name & Salary Of middle five Employees based on Salary..... I mean if table is displayed in ascending order of Salary, and there are 20 records in all..... then I need to display the 8th, 9th, 10th, 11th &12th record..... I hope it's clear by now...... ![]() I will post the answer query...... on fifth day from today..... ![]() |
| | |
![]() |
| Tags |
| question |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| More Interview Questions Here... |