PDA

View Full Version : SQL - Questions and Answers


  1. Find duplicate entries in a table?
  2. Insert or update a record if it already exists?
  3. Calculate the median value of a column?
  4. When is a view updatable in SQL-99?
  5. Select a row at random?
  6. Which ER design tools do you use?
  7. Find the minimum or maximum value across several columns?
  8. How can I selet rows which have 2 columns values cross equal?
  9. How can I store and retrieve a tif file?
  10. Find the maximum value of a column and return the corresponding id?
  11. Return a comma seperated string?
  12. How to order rows in a predefined pattern?
  13. Find Your Most-Commented Blog Categories in Wordpress?
  14. count how many nights each room of an hotel had been rent for a complete year?
  15. List all customers from table customers that haven't made any order during year 2005?
  16. List by ascending number of orders the customers that have placed more than 1 order?
  17. List all customers who ordered products where price of the item is $100 greater than average order?
  18. List players by numbers of points?
  19. List all customers whose name is present more than once in the table?
  20. Insert data from tableA into TableB if idA is not already in tableB?
  21. Create a third row that make the sum of past row + current row (i.e. a running sum)?
  22. List all results except the biggest?
  23. List from particular customers with minum orders?
  24. list customers with average ordered quantities?
  25. How to impose a check that a certain field can only contain a certain domain of values?
  26. How do I ensure that a field in a table must contain values within a specific range?
  27. How do i perform an If statement on a cloumn?
  28. How do I insert multiple new records from a web form field into an MS Access database?
  29. How can I shrink all text columns in a table?
  30. How can I perform a table wide replace statememt?
  31. How do I avoid chicken and egg problems?
  32. Query a table using data in another table?
  33. How to declare Composite Keys?
  34. How to pull data from several tables that follows a pattern?
  35. Do two joins in a single query?
  36. How to use BASE36 conversion in Oracle / SQL?
  37. how to swap row and columns in oracle?
  38. How do i select the most rented movie in a movierentals table in access?
  39. displaying a group by and grand total all on one line?
  40. difficult pivot?
  41. How to retrieve records which the date column should be 36 months older than the current date?
  42. How to find second highest value of a column in a table?
  43. what is stored procedure? tell me in detail.?
  44. want to see all the queries for sql?
  45. How the REF in Object Relational SQL works?
  46. how can i select the third row from table?
  47. get the value of the 3rd row from bottom?
  48. what is sql data import and data export utility?
  49. How to find second highest value of a column in a table? | SQL?
  50. How do I find out which columns are foreign keys in a table?
  51. How do I select the highest 20 to 30 values?
  52. query containing entries that begin with same 3 letters as at least one other entry?
  53. How do I implement LastIndexOf functionality in SQLServer 2000?
  54. Write a SQL statement to change the name of a record?
  55. Does Not Exist?
  56. How do I batch check 30 fields for NULL?
  57. How do i create a query to extract all records within a given date. For instance beginning date and?
  58. how to find third highest record from table?
  59. in which language the SQL is implemented..c, c++, etc..?
  60. Selecting Duplicate Entries in a table?
  61. Maximum Value - Beginner Question?
  62. Updating 2 rows with just 1 row of data?
  63. to convert rows to column using SQL?
  64. How can I find fields that have a substring in common?
  65. SQL Joins?
  66. How to form Query for details given?
  67. maximun number of columns define in sql server data table?
  68. How to use two joins in a single query?
  69. HOW DO I SELECT FROM MULTIPLE FIELDS USING QUERY?
  70. How can you find all tables for a particular value?
  71. How to perform aggregation (sum) on a computed column?
  72. selecting a record based on a persons name?
  73. How to query for valid email address with _@_._ format?
  74. How to select highest value and then create new object with that value +1?
  75. How do I sort results using ORDER BY?
  76. i want to get the third highest salary from a table?
  77. Trim statement?
  78. How do i compare NUMBER to VARCHAR?
  79. compare?
  80. How do I format mySQL date?
  81. How to union two tables, and make one "override" the other for similar records?
  82. How can I select a Field and then add that field as a column?
  83. How do I make one field be a function of another?
  84. What's the best source of Country/City/Region names for a db?
  85. Max stringlength from several tables?
  86. Count entries per month?
  87. Find matches with no repeats?
  88. How to get table structure via SQL?
  89. Find matching names on similar streets?
  90. can i wrire a query which sum up more than 2 columns in a single table?
  91. Find empty columns?
  92. Simple templates by user listing?
  93. Select the 4 row of the table from the top?
  94. how to write select query for merging two columns?
  95. how to find out the 4th highest value from the column?
  96. How can I store Images(*.jpg,*.gif)?
  97. select the candidate who have atleast two subjects to appear in exam.?
  98. how to select the last four rows from a table?
  99. how can we assign rank to the in the result?
  100. I am using ms access and require the merging of info to a column; currently the column has values?
  101. how to find nth salary?
  102. convert the integer value to string?
  103. The top x most popular whatever?
  104. to find top 10 salaries of employees with their names
  105. create one script that will combine multiple statements
  106. Select Min how to
  107. update table
  108. How to change 100minutes to 00:00:00 format
  109. I need to see the tables
  110. Data Types
  111. delete from table where column != (multiple values)
  112. Invoice/Bill from retail Database in Report Format
  113. Oracle Conversion
  114. Select the rows with the same value
  115. Dates in Access 2007
  116. How to find distinct users based on last logon
  117. ON or WHERE: which one is the fastest?
  118. Use varipus select Statement in 1 update
  119. Table within a Table
  120. How to use the Ref Commad?
  121. How do I update a field in one table with the value of a select call on another table
  122. How to know column typ
  123. how to find parent & child related records
  124. SQL: max value from a column?
  125. How to COUNT records in UNION?
  126. Most Basic SQL Question
  127. ORA-01000: maximum open cursors exceeded
  128. subselect to inner join
  129. How to find suppliers that sell all product or more than 1 product ?
  130. Write a Command to Find Blank Cells...
  131. SQL for Comparing values
  132. query to display only the distinct data and not the identical ones
  133. Top 3rd value
  134. A few query questions
  135. write top 5 qurey
  136. Display from tables
  137. Extracting(Display) the data from tables in Certain Conditions(Please help me)
  138. how to insert data into 2 tables by using one query
  139. Trying to Get this Code to work
  140. How can I sum values by week
  141. Incorporated vendors products less than $150
  142. how to see the applied constraints of the table
  143. seeing constraints applied on a table
  144. Multiple translations of ID Field
  145. Either initialization or shutting down in progress
  146. Best practice to normalize many common relationships
  147. Find maximum value between 2 columns of different table
  148. how to search for non numeric values
  149. Pivoting without aggregating - is this possible?
  150. how many ways to using the Update command
  151. Using order by inside subquery
  152. rownum in 9i
  153. Sql Tables For Practice
  154. comparing tables in access using sql....
  155. how to see the text given for example create command in the sql prompt?
  156. how do we delete redundant entries from a table ?
  157. How to retrive data from a column which contains both date and time
  158. Stuck with a query question
  159. How to find if categories are set for employees
  160. Plz give solution 4 this query
  161. How to find the Grandparent of this data
  162. I Need Redesign An Existing Website Which Contains PHP, SQL & Html. HOW?
  163. Sqlj
  164. Left-OuterJoin selecting only the first of 0-to-2 matching rows on the right
  165. Leap year and not a leap year
  166. cursor based thread
  167. pl/sql block
  168. to find n'th largest or smalest value in a table
  169. urgent, does any1 knoiw
  170. Sql cook book code download link?
  171. Sql cook book code download link?
  172. Combining Queries
  173. how to display different names pronounced with similar sound in a colomn for a table?
  174. generate shopping list based on the selected recipe
  175. creating table where 3rd column should be sum of first two columns
  176. please answer my question from correlated queries
  177. How to number rows in Oracle
  178. loading gridview on textchanged event
  179. How turn text to SQL --> Select * ' From Emp'
  180. Select records that are expiring in a month
  181. i need the query
  182. i need the query
  183. SP to alter all tables in db whos datatype is FLOAT
  184. String manipulation
  185. Checking whether values in one table are missing from grouping in 2nd table
  186. how do find the 15th highest value in the coloum without using subquery?
  187. Database schema versioning tool?
  188. Getting Data From Excel
  189. Accessing data In reverse Order
  190. Schema Compare using information Schema Views
  191. Select Query with different fields
  192. dropping a column from table
  193. finding differences within the same group of records
  194. 3 table merge?
  195. I Need Query urgent
  196. Table Matching with subquery
  197. constraint with if-then
  198. Text manipulation
  199. I need help w/ a query - URGENT
  200. Leap year
  201. Newly uploaded photos
  202. odd/even record display
  203. odd/even record display
  204. Stock holdings
  205. Dublicate Rows
  206. Query SQL -- help !!!
  207. Systems Engineer
  208. Regd Query
  209. SQL Server
  210. conversion from 9digit to 8digit number:urgent
  211. Querying the Database