SURESHKUMAR.NET FORUMS
Registered Member Login:
Not a member? Register today!



Welcome to the SURESHKUMAR.NET FORUMS.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.




Question 1

        

Reply
 
LinkBack Thread Tools Display Modes
Old 14-04-06, 01:22 PM   #1 (permalink)
Moderator
 
Join Date: Feb 2006
Posts: 1,413
Thanks: 0
Thanked 17 Times in 14 Posts
Rep Power: 21 sowmya571 has disabled reputation

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!
sowmya571 is offline Offline   Reply With Quote
Old 17-05-06, 11:45 PM   #2 (permalink)
Junior Member
 
Join Date: May 2006
Location: India
Posts: 22
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 4 Natural has disabled reputation
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.....
Natural is offline Offline   Reply With Quote
Reply

Tags
question


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +6.5. The time now is 01:28 PM.

More Interview Questions Here...

Content Relevant URLs by vBSEO 3.3.2