Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Help! :)

Author  Topic 

sikharma13
Starting Member

44 Posts

Posted - 2013-11-16 : 19:12:32
i have table payroll and has column number of eligible for education

entry_id===no_eli_educ
00000001========2=====
00000002========3=====
00000003========0=====


and i havecolumn name_of_schools in table schools

entry_id===name_of_schools
00000001===adamson high
00000002===lasalle high
00000002===no facility
00000002===guanlun high
00000003===no facility

i want to add a column number of no school in my payroll table

wherein this is my expected output

number_of_no_school
00000001===0
00000002===1
00000003===0

since entry_id 00000003 has no eligible for education
it will also considered no number_of_no_school as 0..

is it possible?? thanks!

VFP9.0 via MySQL 5.0

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2013-11-16 : 23:11:31
this thread is a continue from http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=189693


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -