answersLogoWhite

0


Best Answer

SELECT * FROM Persons WHERE FirstName='Peter'

User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

select * from table_name where firstname = 'peter' AND lastname = 'jackson'

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you select all the records from a table named Persons where the value of the column FirstName is Peter?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you select all the records from a table named Persons where the value of the column FirstName starts with an a?

To select all records from the "Persons" table where the value of the column "FirstName" starts with 'a', you can use the following SQL query: SELECT * FROM Persons WHERE FirstName LIKE 'a%'; This query will retrieve all records where the "FirstName" column starts with the letter 'a'.


How do you select a column named FirstName from a table named Persons?

In order to select a column named FirstName from a table named Persons, you should run the following MySQL query:SELECT FirstName FROM Persons


How can you return all the records from a table named Persons sorted descending by FirstName?

SELECT * FROM Person ORDER BY FirstName DESC


How can you return the number of records from table?

select count(*) clumns from persons


With SQL how do you select all the records from a table named Persons where the LastName is alphabetically between and including Hansen and Pettersen?

SELECT * FROM Persons WHERE LastName BETWEEN 'Hansen' AND 'Pettersen'


What are the steps for sorting data using multiple fields?

Choose: Select -> Sort & Filter --> Custom Sort Choose the columns that you want to determine the sort, starting with the main column, and adding any others as appropriate. So you might sort first on the Surname column and then on the firstname column. For each column, choose the order you want to sort. Then click OK to apply the sort.


How do you select specific column in oracle?

select column from tablename


Sample Sql query with explanation for selecting the alternate row from the table?

SELECT * FROM ( SELECT FirstName LastName FROM people ) @tempTable1 WHERE MOD(@temptable1.rn 2) 1 --even number query SELECT * FROM ( SELECT rownum rn firstname lastname FROM people ) @temptable1 WHERE MOD(@temptable1.rn 3) 0 but it is not working properly...can anubody tell me what is rownum here...


What is the easist method to select a column in Excel?

Click on the letter at the top of the column; that will select the entire column.


How do you delete rows and columns from am Microsoft Excel table?

many a time you may require to add a row of data or a coloumn of data which you forgot to enter earlier .excel proveides you the facility to insert rows or columns onto the sxisting worksheet very easily .it is that inserting a row of data will shift the rest of the rows down and cause the ladt row of the worksheet ,the rest of the columns shift right ,if there is any data in the last row or column of the worksheet that will be lost .


When was Select Records created?

Select Records was created in 1981.


How do you get data from database when you pick up item from database list?

Here is a simple method for connecting to your MySql database and outputting some data. <?php #Connect to MySQL database $db=mysql_connect("localhost","YourDatabaseUserName","YourDatabasePassword"); mysql_select_db("YourDatabaseName",$db) or die ("cant change"); #Select data from database table called customers. $result = mysql_query("select * from customers Order By LastName, FirstName",$db); while ($row = mysql_fetch_array($result)) { $FirstName = $row["FirstName"]; $LastName = $row["LastName"]; echo "$LastName, $FirstName"; ?><br><? } ?>