answersLogoWhite

0


Best Answer

The SQL you need is something like what I wrote below, although the wild card character (% or *) may depend on the ANSI standard of your database.

Select * From tablename where LastName Like 'P%'

Select * From tablename where LastName Like 'P*'

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write the syntax to retrieve records with last name starting with P in SQL?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is syntax in c?

syntax is the way you write your code in it defines the meaning of keywords & how to write


How do you retrieve records that have no data in SQL?

You can write a query to look through specific fiends and check if there is any data in the field as so. SELECT * FROM table WHERE field1 = '' OR field2 = '' ... and so on


What is the significance of write and talk command in UNIX?

About write Send a message to another user. Syntax write person [ttyname] About talk Talk with other logged in users. Syntax talk person [ttyname]


Write a sample program using ASPNET explaining all the syntax and semantics of the program?

write a sample program using asp.net explaining all the syntax and semantics of the program


How do you use syntax in a sentence?

Syntax- n.- the grammatical arrangement of words in a sentenceExample: When you write a novel, avoid improper format, misspellings, punctuation mistakes, grammar and syntaxmistakes.


What is written in the correct syntax in Excel?

When functions are used, they must follow their designated structure, which is the syntax. If the syntax is not followed, the function will not work. The same is the case if VBA is being used to write code for the worksheet.


What is the correct JavaScript syntax to write Hello World?

document.write("hello world");


What is the set of grammar and rules that specifies how to write instructions for a solution algorithm?

syntax


Sentence for the word syntax?

Syntax- n.- the grammatical arrangement of words in a sentenceExample: When you write a novel, avoid improper format, misspellings, punctuation mistakes, grammar and syntaxmistakes.


What does do in java?

You never write "do" seperately in Java. The only situation I can think of when you have to write "do" is in the "do while" statement. This is the syntax: do { statement(s) } while (expression);


What does INS do?

You never write "do" seperately in Java. The only situation I can think of when you have to write "do" is in the "do while" statement. This is the syntax: do { statement(s) } while (expression);


Write the syntax for find command in dos?

For most DOS commands you can write COMMAND /? and you will be presented with a list of possible choises. eks. FIND /? Regards.