answersLogoWhite

0

There are several methods for limiting the output of a query; joins, and a WHERE clause as an example. As an example lets say we have a Customer Table with the following rows CustomerID, FirstName, LastName, Address1, Address2, City, State, PostalCode Now that we have a table lets assume we want to retrieve all records from the table where the Customers LastName = WILLIAMS and they live in the State of Ohio (USA). This query would look like the following: SELECT CustomerID, FirstName, LastName, Address1, Address2, City, State, PostalCode FROM Customers WHERE LastName = 'Williams' AND State = 'OH' If you do not want all of the columns in the table then you would simply modify the SELECT clause to include only those columns that you wish to retrieve. In this example you will want an index on the table that includes the LastName and State fields.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What is the difference between text and varchar in mysql?

That is text where we put only character type value and that is varchar where we put all data type value


What is unsigned in mysql?

In MySQL, "unsigned" is a data type. When we put an unsigned in a column, it says you can't put negative integers in there. With unsigned int, the maximum range is 4294967295. Note: Inserting a negative value will result in a MySQL error. To learn more about data science please visit- Learnbay.co


What is true for all functions?

For any given input, the function will only have one output value.


How to determine the MySQL leading prefix index size?

Indexes can be created that use only the leading part of column values, using col_name(length) syntax to specify an index prefix length. The MySQL prefix index is only apply to CHAR, VARCHAR, BINARY, VARBINARY, BLOB and TEXT columns.In order to determine the best MySQL leading prefix index size, you should try to find the smallest value size that gives uniqueness.


Is a function a relation that assigns only one output value to each of its input values?

Answer - True, answer on apex.


How many salary outputs does the chart have for each input value of training?

There can only be one output for each input.


A function is a relation in which each element in the input is mapped to how many elements in the output?

It can be mapped to only one value.


What is the function rules of input and output?

The rule is what actions (operations) the function performs. The only requirement is that for each imput there is an output and that the same input always results in the same output. (Different inputs can have the same output).


Is y equals 0 a function?

yes according to the vertical line test, it is a function because every x value has only one y output value.


What is a rule of matching elements to two sets of numbers in which an input value from the first set only has one output value in the second set?

its called ask your teacher


When do you run a report which output option creates a file you can use in a spreadsheet?

The Excel output option only


Where can the MySQL server be downloaded from?

MySQL can be downloaded from the MySQL website. This seems to be one of the only places on the internet to offer such a download. After more research one might find mirrors from other websites, but there really isn't any need to stray from the source on such a vital piece of software