Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

I need sql query please help me out

$
0
0

I have two databases 1) erp 2) edusource

In erp database i  have table  master tables and  columns  like RecordId , value type ,Feildtext,description,Meaining,parentid etc

 data stores based on value type like

1CountryInIndiaNULL    NULLTrue
2CountryAusAustriliaNULL    NULLTrue
3CountryUsaUnited States of AmericaNULL    NULLTrue
4CountryUkGreat BritianNULL    NULLTrue
5StateAPAndhrapradeshNULL     1True
6StateMHMaharasthaNULL     1True
7StateTNTamilnaduNULL     1True
8StateSdySydneyNULL     2True
9StateMELMelbourneNULL2True
10LocationIN-HydHyderabadNULL1True
11LocationIn SEzSez-HyderabadNULL1True
NULLNULLNULLNULLNULLNULLNULL

for  country and state we have a relation ship parentid and recordid

country

1Country InIndia                                   NULLNULL1
2Country AusAustrilia                           NULLNULL1
3Country UsaUnited States of America    NULLNULL1
4Country UkGreat Britian                NULLNUL          1 

5State AndhraPradeshApNULL1 1
6State MaharasthaMH NULL1 1
7State Tamilnadu       TNNULL       11
8State Sydney            Sdy   NULL      21
9State        Melbourne       MELNULL      21

  in edusource  database i have location and columns like countryname,statename,feildtext,descriptiom,isactive

i need to insert data in edusource

 database of tbl_ maplocation from that that database


Viewing all articles
Browse latest Browse all 8428

Trending Articles