i have xml source. xml source having lacks of records. i
want extract/retrive xml source data using sql query.
please tell me how to write query.

Answers were Sorted based on User's Feedback



i have xml source. xml source having lacks of records. i want extract/retrive xml source data usin..

Answer / naren

select e.getclobVal() from table name e;

Is This Answer Correct ?    2 Yes 1 No

i have xml source. xml source having lacks of records. i want extract/retrive xml source data usin..

Answer / jagadeesh

create procedure proc_es
as
begin
declare @hdoc int
DECLARE @xml xml
set @xml=(select *
From openrowset(Bulk'C:\emp18.xml', single_blob) as xmldata)
exec sp_xml_preparedocument @hdoc output,@xml
insert into emp19(emp_id,emp_fname,emp_lname,emp_mail)
select *
from openxml(@hdoc,'/employee/details',3)
with(emp_id int,emp_firstname varchar(50),emp_lastname varchar(50),emp_mailid varchar(50))
exec sp_xml_removedocument @hdoc
end

Is This Answer Correct ?    1 Yes 0 No

i have xml source. xml source having lacks of records. i want extract/retrive xml source data usin..

Answer / yalamanda

select top 100 percent * from table_name..

Is This Answer Correct ?    0 Yes 0 No

i have xml source. xml source having lacks of records. i want extract/retrive xml source data usin..

Answer / mathivanan

select extractvalue(columnname,'/roottag/subtag') from tablename

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

What is data type in database?

0 Answers  


What is microsoft t sql?

0 Answers  


What are the various restrictions imposed on view in terms of dml?

0 Answers  


Which kind of parameters cannot have a default value in pl sql?

0 Answers  


Can you alter start with clause?

1 Answers   TCS,






Can delete statement be rollbacked?

0 Answers  


source destination distance chennai bangalore 500 bangalore chennai 500 hyd delhi 1000 delhi hyd 1000 bangalore hyd 800 Here chennai to bangalore and bangalore to chennai is same distance. and hyd and delhi also same criteria. Based on the distance i want to display only one row using sql query?

4 Answers   JPMorgan Chase,


Explain character-manipulation functions?

0 Answers  


Can we create clustered index without primary key?

0 Answers  


Can procedure in a package be overloaded?

1 Answers   HCL,


What are the types of SQL Statement?

3 Answers  


What is sql and also describe types of sql statements?

0 Answers  


Categories