Search results

  1. L

    Order clause by own ordering method

    how can i put default in the switch function?
  2. L

    Order clause by own ordering method

    I have a column name priority, in this column, the data consists "Very High, High, Medium, Low and etc" how can i make a order clause acording to the Priority level? i found from this from net, but is only applicable in SQL server... how can i modify this to suit mine? SELECT * FROM TABLE...
  3. L

    Inserting a single quotation ' or double quotation "

    i'm using ADO... how can i apply the parameterized query in a string of my sql statement?? i have string variable for my sql, during inserting, how can i apply parameterized query to those variable that in used? if valA is abc'de"f valB is aaa CString sql = "INSERT INTO TABLE (COLA, COLB)...
  4. L

    Inserting a single quotation ' or double quotation "

    is there any one know how to transform this to VC++?? if i use replace, that would be bit messy as i need to replace ' to '' and " to \"... or anyone got any good suggestion? help...
  5. L

    Inserting a single quotation ' or double quotation "

    sorry, i don't understand what is parameterized queries??
  6. L

    Inserting a single quotation ' or double quotation "

    how if i want to enter a string with the combination of ' and "?? example: ab'c"def
  7. L

    Inserting a single quotation ' or double quotation "

    i would like to insert an SQL statement from my application which writing in visual c++, but due to my insert data contain ' and " so is prompt error during inserting. So would like to know how can i insert an ' and " in MS Access database using the sql statement.
  8. L

    Inserting a single quotation ' or double quotation "

    How can i insert a single quotation ' or double quotation " to the Ms Access database?
  9. L

    Table link

    Is it possible to link 2 table in 1?? i wish to link tblConfiguration1 and tblConfiguration2 into tblMaster table??which like i select Configuration1 in tblMaster table it will show the data in tblConfiguration1 and select Configuration2 in tblMaster table it will show the data in...
  10. L

    Table link

    i don't get what you means by creating view??
  11. L

    Table link

    Is it possible i create one master table and link few table together?? In the mdb that i attached there have 3 table - tblMaster, tblConfiguration1 and tblConfiguration2. Using the relationship to link tblMaster's field Configuration to other 2 table Configuration field but there only showing 1...
  12. L

    Need help in work week

    i'm looking for work week not month... i try using datepart... but it unable to show me "ww yyyy" in one record. thanks.
  13. L

    Need help in work week

    i would like to querry a date which only showing work week and year... i try in FORMAT([MYDATE], 'WW YYYY', 1, 2)... it work but when go to 31/12/2006 it showing "01 2006"... but suppose it should show "01 2007" how can i overcome this?
  14. L

    Empty string in date/time datatype

    is it "IS NULL" and "IS NOT NULL" same with " = NULL" and "<> NULL"?
  15. L

    Empty string in date/time datatype

    there is a end_date column record with date/time datatype, how could i query datat that showing the particular is empty. i try end_date = NULL, no record is showing and end_date = ' ' , datatype mismatch... so which one should i write??
  16. L

    between statement

    same too the record of 04/05/2006 is not showing.
  17. L

    between statement

    if the beween statement is use as "number between 1 and 7" so record with number 1,2,3,4,5,6,7 will be showing right?? but what if using in date?? example mydate between #04/01/2006# and #04/05/2006# the record i aspect is 04/01/2006, 04/02/2006, 04/03/2006, 04/04/2006, 04/05/2006 but it just...
  18. L

    Count day in table

    ya got it... but actually this is just part of it, when i apply this to my query, other record might not be able to query out.. my table consist of start_date, end_date, NumberOfFail... what i need is i need to know got how many days in the record, get the total of NumberOfFail, and get the...
  19. L

    Count day in table

    it does not group in distinct. it return the number of all record. if my table have 22 record, it return 22. what i want is distinct out the date and count the record.
  20. L

    Count day in table

    How can i get the count of date inside a database. the date might be duplicate, so i would like to know how many days are in the table. i try in this way... SELECT count(distinct( format([mydate],"dd/mm/yyyy"))) as DayCount from tbl but error message "undefined function 'distinct' in...
Back
Top Bottom