Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have three tables
1.student with sid,seatno,vehicleno
2.emp with eid,seatno,vehicleno
3.vehicle with vehicleno,total seats
i want to get the count(seatno) from both student amd emp table to get the no of seats filled by
both student and emp based on vehicleno
Posted
Updated 2-Apr-13 19:56pm
v2

1 solution

SQL
select  (select count(seatno) from  student ) + (select count(seatno) from emp )
 
Share this answer
 
v3
Comments
laxmi smiley 3-Apr-13 0:59am    
thanks for help
Shmuel Zang 3-Apr-13 1:40am    
5'ed.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900