Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: kbsc
  • Content: Threads
  • Order by date
  1. kbsc

    Upper and Lower Case

    I'm trying to create a query that will display our database field with Upper and Lower case (currently the data is saved as all Upper case). So for vchBusinessName = ARROW PLUMBING AND SERVICES, INC. I want it to display = Arrow Plumbing And Services, Inc. I've created this query: SELECT...
  2. kbsc

    Insert statement

    I have not created many insert statements and I'm not sure how this one should be coded. Please help. I need to insert a record based on a select query that will give me a record set of what needs to be inserted. select query will give me intCaseID from tblCase. 12345 23456 34567 Then I...
  3. kbsc

    UPDATE with MAX

    I have a Select Query that I have tested and is pulling the results I want, now I need to create an UPDATE statement and I'm not sure how to with a MAX involved in the update. Please help!! I'm not familiar with writing UPDATE stmts. Thanks in advance. SELECT STATEMENT SELECT...
  4. kbsc

    TOP 9 summed value + (A Total Sum value - Top 9 value)

    I need help I have a very long query. That I know could be written better and more efficient but, I'm not sure how. The query works except for in the First Select Stmt, it wont let me include the ORDER BY (I put *** by it). Someone suggested for me to user the feature of CUBE, but I have to...
  5. kbsc

    Combining two queries and make results join into one column

    I've created a very long and complicated Derived Query in order to Combine Two Queries and but my problem is its not giving me the correct results. My extremely long query is below, but here are my results and then I'll show you what I need it to do. Thanks in advance for any help! First of...
  6. kbsc

    CASE statement help with multiple tables

    NEED SOME HELP!! I've created the query below. I need a query that will look in a table and if intCaseID is null, then will pull a date in another table, else will pull a date in that table. Right now it only works one way if the value is not null, it works correctly. If its null, then it...
  7. kbsc

    Need to user query results for another query

    I created a query and now I need to use the results from that query to get more detailed results. Any suggestions! 1st Query: SELECT c.vchTrustee, COUNT(ba.vchAccountNumber) AS total, ba.vchAccountNumber FROM tblBankAccount ba INNER JOIN tblCase c ON ba.intcaseID = c.intCaseID GROUP BY...
  8. kbsc

    COUNT (*) but need it to include 0 values with in a month

    I need help! I have a table named tblCases that includes records with a field dteFiled. I need a query that will Count each record for each month with in a year. The query below does this but if there are no records within a particular month then it excludes that month. SELECT...

Part and Inventory Search

Back
Top