.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Interview Question >> Sql Server >> Post New Question Subscribe to Interview Questions

What is the wildcard character in SQL? Let's say you want to query database with LIKE for all employees whose name starts with La.

Posted By :Ghanashyam Nayak     Posted Date :September 22, 2010    Points :10   Category :Sql Server 
The wildcard character is %, the proper query with LIKE would involve 'La%'.

You can also find related Interview Question to What is the wildcard character in SQL? Let's say you want to query database with LIKE for all employees whose name starts with La.  below: 

What is Wildcard character in SQL Server ?

Wildcard characters Determines whether a given character string matches a specified pattern.
A pattern can include regular characters and wildcard characters.
During pattern matching, regular characters must match exactly the characters specified in the character string. Wildcard characters, however, can be matched with arbitrary fragments of the character string.
Using wildcard characters makes the LIKE operator more flexible than using the = and != string comparison operators.

There are 2 Wildcard characters i.e. '%' and '_'
Any string of zero or more characters.
WHERE title LIKE '%computer%' finds all book titles with the word 'computer' anywhere in the book title.

_ (underscore)
Any single character.
WHERE au_fname LIKE '_ean' finds all four-letter first names that end with ean, such as Dean or Sean. (More...)

Which query will give the collation type for the specified database 'MyDatabase'?

SELECT CONVERT(char, DATABASEPROPERTYEX('MyDatabase','collation')) (More...)

Database: Define sub query

A sub-query is also refereed as sub-select, they are enclosed with in the body of another sql statement, Sub select statement generally return single row i.e atomic value and then compared with multiple rows using IN keyword in sql statement that encompases sub-select statement. (More...)

Database Concurrency in Sql Server.

When two or more user try to update same type of data in a table then Database Concurrency helps in this situation.

There are 2 types of Database Concurrency

Pessimistic: When one user try to change the data with pessimistic concurrency then a lock is placed on the data in a table so that another user cannot change data. when one user finishes then other user can able to change.

Optimistic: When two user works on the same data in a table and one change that data first then second user cannot change that same data becasue the which he have using is allready changed so he cannot do the change becasue change apply to another data that is changed by first user. (More...)

What is a Database system?

The database and DBMS software together is called as Database system. (More...)

What is Query evaluation engine?

It executes low-level instruction generated by compiler. (More...)

Can SharePoint be linked to a SQL database?

This is possible via a custom application, but it not natively supported by SharePoint or SQLServer. (More...)

What is Query binding ?

The binding of an object to a query (More...)

How many Files per database will accept?

32,767 files are the maximum number in SQL Server 2005 (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend