ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
how can i am search the data from database? 
just like google
 Question Submitted By :: Snehalata
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how can i am search the data from database? just like google
Answer
# 1
for this first design the table like the fields as

EMPNo | EMPNAME | SALARY | DETAILS

Now write the query as follows...

SELECT * FROM EMPLOYE WHERE DETAILS LIKE '%<SEARCH KEY>%'

This is the simplest query for that...

Sharif
 
Is This Answer Correct ?    2 Yes 0 No
Sharifuddin
 
  Re: how can i am search the data from database? just like google
Answer
# 2
note that, when datatype is string i.e. details like 
mahendra, then use like this - "select * from employee 
where empname like '%" & trim(txtbob.text) "&' ", i used  
because to any leading space will be deleted.

if u want to find salary figure that i integer then
"select * from employee where salary >= " & trim
(txtbob.text) "&"

pl.note '%" &   '&" for string 


for this first design the table like the fields as

EMPNo | EMPNAME | SALARY | DETAILS

Now write the query as follows...

SELECT * FROM EMPLOYE WHERE DETAILS LIKE '%<SEARCH KEY>%'

This is the simplest query for that...
 
Is This Answer Correct ?    2 Yes 1 No
Mahendra
 
 
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
How can i include both C# and vb.net classes in same solution?  2
If Asp Dot Application is stateless what happened? during designing TCS3
what is the challenging situation you faced in your career? HP3
About CLS and CTS ? Microsoft2
What is Master Page in Asp.net?  5
I have a textbox , assign required field validator and i have two buttons 1) save 2) cancel , i want the validator run only when i click save button, don't validate cancel button , what to do? eMids5
what is value type to reference type AG-Technologies6
Explain the differences between Server-side and Client-side code?  3
Types of objects in ASP? Microsoft5
You have two buttons in web form and i clicked on one of the button, so how do i find which button i've clicked on the form in my page load? INDUS14
What is difference between masterpage and user control, what is the objective of master page when we had user control in .NET 1.1 version DELL3
what is the Difference between Dim Object as object AND dim obj as myform? Microsoft1
How do you get records number from 5 to 15 from a dataset of 100 records? Syntax-Softtech1
You create an ASP.NET application for a hotel. The application contains a page that displays current weather conditions for the city in which the hotel is located. The application calls an XML Web service every 10 minutes to update the current weather conditions. A new page is then displayed for subsequent requests. You want the same page to be cached and retrieved from the cache during the time between calls to the XML Web service. You decide to use a Page directive to accomplish this goal. Which Page directive should you use? A . <%@ Cache Seconds="600 '' VaryByParam="Page" %> B . <%@ OutputCache Time="600" %> C . <%@ OutputCache Duration="600" VaryByParam="None" %> D . <%@ OutputCache Duration="600" %> Syntax-Softtech2
About Windows/Forms Authentication  1
What is the use of directives & explain with example? C-Squared-Systems2
In which interface the template of any control like Gridview would Initiate?  2
What is the method used to load generated dataset with data on the DataAdapter control ?  3
which one is faster execute reader, scalar, execute non query ? Minecode16
relacement of websevices in .net 3.0? Mind-Tree1
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com