PDA

View Full Version : SQL - Questions and Answers


Pages : [1] 2

  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. Pivoting without aggregating - is this possible?
  149. how many ways to using the Update command
  150. Using order by inside subquery
  151. rownum in 9i
  152. Sql Tables For Practice
  153. comparing tables in access using sql....
  154. how to see the text given for example create command in the sql prompt?
  155. how do we delete redundant entries from a table ?
  156. How to retrive data from a column which contains both date and time
  157. Stuck with a query question
  158. How to find if categories are set for employees
  159. Plz give solution 4 this query
  160. How to find the Grandparent of this data
  161. I Need Redesign An Existing Website Which Contains PHP, SQL & Html. HOW?
  162. Sqlj
  163. Left-OuterJoin selecting only the first of 0-to-2 matching rows on the right
  164. Leap year and not a leap year
  165. cursor based thread
  166. pl/sql block
  167. to find n'th largest or smalest value in a table
  168. urgent, does any1 knoiw
  169. Sql cook book code download link?
  170. Combining Queries
  171. how to display different names pronounced with similar sound in a colomn for a table?
  172. generate shopping list based on the selected recipe
  173. creating table where 3rd column should be sum of first two columns
  174. please answer my question from correlated queries
  175. How to number rows in Oracle
  176. query
  177. loading gridview on textchanged event
  178. How turn text to SQL --> Select * ' From Emp'
  179. number to date
  180. lemme know
  181. Select records that are expiring in a month
  182. i need the query
  183. i need the query
  184. SP to alter all tables in db whos datatype is FLOAT
  185. String manipulation
  186. Checking whether values in one table are missing from grouping in 2nd table
  187. how do find the 15th highest value in the coloum without using subquery?
  188. Database schema versioning tool?
  189. Getting Data From Excel
  190. Accessing data In reverse Order
  191. Schema Compare using information Schema Views
  192. Select Query with different fields
  193. dropping a column from table
  194. finding differences within the same group of records
  195. 3 table merge?
  196. I Need Query urgent
  197. Table Matching with subquery
  198. constraint with if-then
  199. SQL Query for finding the data weekwise
  200. Text manipulation
  201. I need help w/ a query - URGENT
  202. Leap year
  203. Newly uploaded photos
  204. odd/even record display
  205. odd/even record display
  206. Stock holdings
  207. Dublicate Rows
  208. Query SQL -- help !!!
  209. Systems Engineer
  210. Regd Query
  211. SQL Server
  212. conversion from 9digit to 8digit number:urgent
  213. Querying the Database
  214. Show Distinct Values Along With Count
  215. How at a specified time can a database update itself with other database
  216. "Condition table" query
  217. sql queries for RCA .... pls help us
  218. Sql Scripts
  219. Using SQL Query, find minimun price of each brand.?
  220. Selecting multiple occurence on a table
  221. Want to return three columns for a maximum value
  222. how to write
  223. Another question: Find the minimum value across several columns for each row?
  224. finding groups of related data
  225. multiple enteries for one id number
  226. vertical rows in horizantal
  227. Row Number Each Group
  228. Complicated sorting in one sql
  229. select the most commonly repeated value from the table
  230. select values from the 2 different table
  231. How to select a record based on 1 field being min/max
  232. Find results with repeats
  233. Arithmetic overflow error converting expression to data type int.
  234. How to Find a CLIENT is getting service Between Two dates
  235. Which Plan is the most efficient one?
  236. how to find the eigth highest value from a column
  237. explanation of the query
  238. Need to eliminate dupes sharing first 10 digits
  239. error returned for a query containg case
  240. nested queries
  241. Delete Multiple Items in Multiple table
  242. to add constraint to an attribute
  243. Help needed for sql query : Procedure & Insert trigger
  244. crosstab query in sql
  245. trigger does not work for some values
  246. How do I concatenate values in the same column
  247. Rows to String
  248. how to generate numbers automatically from 1-100 without using sequence and connectby
  249. =MIN(A1:B2) need to know how to do this in access 2000
  250. Help required on a SQL Query