Hospital Doctor Patient District Patient doctor Hospital name d name d id p_id p1 h_id Area d_id P_name c id D name p_id 1 NICD Latifabad No.3 1. Ahmed Khan Sobia c1 Karachi p1 1 2 Мaa Jee Latifabad...


Sql server 2012 query question


Create following tables with primary and foreign key relations.



Hospital<br>Doctor<br>Patient<br>District<br>Patient doctor<br>Hospital name<br>d name<br>d id<br>p_id<br>p1<br>h_id<br>Area<br>d_id<br>P_name<br>c id<br>D name<br>p_id<br>1<br>NICD<br>Latifabad No.3<br>1.<br>Ahmed Khan<br>Sobia<br>c1<br>Karachi<br>p1<br>1<br>2<br>Мaa Jee<br>Latifabad No.2<br>2<br>Rashid Ahmed<br>p2<br>Anusha<br>c2<br>Hyderabad<br>p2<br>1<br>Agha Khan<br>Isra<br>3<br>Heerabad<br>3<br>Junaid<br>p3<br>Faryal<br>c3<br>Islambad<br>p3<br>1<br>4<br>New Hyderabad<br>4<br>Deedar<br>p4<br>Laviza<br>p4<br>2<br>Boan Care<br>Saddar<br>5<br>Danial<br>p5<br>Hitesh<br>p5<br>6<br>Kiran<br>Phulleli<br>6<br>Raheem<br>рб<br>Nailesh<br>p6<br>рб<br>2<br>7<br>LUMS<br>Jamshoro<br>7<br>Akhter<br>p7<br>p8<br>Geeta<br>p7<br>8<br>Memon<br>Safora<br>8<br>Waseem<br>Arsa<br>p8<br>3<br>Indus<br>MA Jinnah<br>9<br>Shabeer<br>p9<br>Ibrahim<br>p9<br>10<br>Uncle Saria<br>Garden<br>10<br>Waseem<br>p10<br>Zafar<br>p10<br>1<br>Arshad<br>p11<br>p12<br>11<br>Zaid<br>p11<br>12<br>Saleem<br>Aafia<br>p12<br>3<br>13<br>Rehan<br>p13<br>Uzair<br>p13<br>4<br>14<br>Rameez<br>p14<br>Saqib<br>p14<br>4<br>15<br>Rajesh<br>p15<br>Anjum<br>p15<br>4<br>16<br>Darwesh<br>p16<br>Sami<br>p16<br>5<br>p17<br>Zohaib<br>p17<br>p18<br>Aamir<br>p18<br>5<br>p19<br>Salman<br>p19<br>p20<br>Sanjo<br>p20<br>6.<br>

Extracted text: Hospital Doctor Patient District Patient doctor Hospital name d name d id p_id p1 h_id Area d_id P_name c id D name p_id 1 NICD Latifabad No.3 1. Ahmed Khan Sobia c1 Karachi p1 1 2 Мaa Jee Latifabad No.2 2 Rashid Ahmed p2 Anusha c2 Hyderabad p2 1 Agha Khan Isra 3 Heerabad 3 Junaid p3 Faryal c3 Islambad p3 1 4 New Hyderabad 4 Deedar p4 Laviza p4 2 Boan Care Saddar 5 Danial p5 Hitesh p5 6 Kiran Phulleli 6 Raheem рб Nailesh p6 рб 2 7 LUMS Jamshoro 7 Akhter p7 p8 Geeta p7 8 Memon Safora 8 Waseem Arsa p8 3 Indus MA Jinnah 9 Shabeer p9 Ibrahim p9 10 Uncle Saria Garden 10 Waseem p10 Zafar p10 1 Arshad p11 p12 11 Zaid p11 12 Saleem Aafia p12 3 13 Rehan p13 Uzair p13 4 14 Rameez p14 Saqib p14 4 15 Rajesh p15 Anjum p15 4 16 Darwesh p16 Sami p16 5 p17 Zohaib p17 p18 Aamir p18 5 p19 Salman p19 p20 Sanjo p20 6.
Hospital_district<br>h id<br>doctor_hospital<br>d_id<br>h_id<br>Doctor_district<br>c_id<br>d_id<br>C_id<br>1.<br>c3<br>1<br>c1<br>1<br>1<br>c3<br>2<br>c2<br>3<br>c1<br>3<br>c3<br>3<br>3<br>4<br>c1<br>4<br>c1<br>4<br>4<br>5<br>c3<br>5<br>c2<br>5<br>5<br>c3<br>c3<br>7<br>c2<br>7<br>c1<br>7<br>7<br>8<br>c2<br>c2<br>8<br>8<br>9<br>c1<br>c3<br>10<br>c2<br>10<br>c1<br>10<br>10<br>11<br>c2<br>11<br>1.<br>12<br>c3<br>12<br>1<br>13<br>c1<br>13<br>2.<br>14<br>c2<br>14<br>15<br>c3<br>15<br>3<br>16<br>c1<br>16<br>3<br>1.<br>10<br>3<br>8<br>4<br>7<br>6.<br>7<br>4<br>8.<br>2.<br>10<br>1.<br>

Extracted text: Hospital_district h id doctor_hospital d_id h_id Doctor_district c_id d_id C_id 1. c3 1 c1 1 1 c3 2 c2 3 c1 3 c3 3 3 4 c1 4 c1 4 4 5 c3 5 c2 5 5 c3 c3 7 c2 7 c1 7 7 8 c2 c2 8 8 9 c1 c3 10 c2 10 c1 10 10 11 c2 11 1. 12 c3 12 1 13 c1 13 2. 14 c2 14 15 c3 15 3 16 c1 16 3 1. 10 3 8 4 7 6. 7 4 8. 2. 10 1.

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here