Hi guys pls any one help me , I am facing this problem since
last one week ,

my question is

in there 1000 rows and 1000 coloums , i want to pick the one
record , how ?

Answer Posted / themba tjnas ngobeni

Hi, If you already know what record to pick then before
recommend what you need to do:

1. do you know how your table structure looks like? I guess
u know but do you have indexes build on your major select
columns?

2. irrespective of how many columns are there if you know
how to describe your table you will know which columns are
of importance to you.

With that I will recommend this:

Write your sql statement similar to:
1. Select *
From My_table
where major_column = :my_value --Primary key view all
columns

2. Select *
From My_table
limit 1 -- without primary key but view all columns

3. Select my_column1,my_column2,my_column3, etc
From My_table
where my_column1 like '%:my_value%' -- without using
primary key
limit 1

you can still write more sql statements to achieve the same
results if you want to be vendor specific like Oracle you
can use limit 1 or rownum =1 etc.

I hope this answers you questions.
Regards

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you call windows APIs, explain with an example?

1539


global sheet and external excel sheet how it will work

1407


what is mean by release in quality center and who will perfom?

2455


Welcome link is dynamic. How do you handle? What is your approach and write script.plz send answer

1627


Hi iam a begginer or rather new stsrter to QTP and strugling to start as i have to start writing the automated scripts for the existing manual testing could some one send me some tips ans tricks for a jump start. Any help is greatly appreciated

1812






What is test parameter

1585


How do you find an object in an gui map.

777


Explain the winrunner testing process?

618


When it is appropriate to change physical description?

632


How do you maintain the document information of the test scripts?

568


What is the purpose of gui spy?

799


What is boundary test?

639


Explain the purpose of gui map configuration?

615


Which are default codes winrunner generates when we start the application?

1584


How do you identify which files are loaded in the gui map?

623