home *** CD-ROM | disk | FTP | other *** search
/ Dr. Watson 2.0 / DRWATSON2.iso / OFFICE / WZDAT80.MDT / tblQueries.json < prev    next >
JavaScript Object Notation  |  1997-03-17  |  7KB

  1. {
  2.     "schema": {
  3.         "QueryID": "Long Integer",
  4.         "DatabaseTypeID": "Long Integer",
  5.         "QueryName": "Text (255)",
  6.         "SQL": "Memo/Hyperlink (255)"
  7.     },
  8.     "data": [
  9.         {
  10.             "QueryID": 2,
  11.             "DatabaseTypeID": 3,
  12.             "QueryName": "╨ù╨░╨┐╤Ç╨╛╤ü ╨┐╨╛ ╤ü╤â╨╝╨╝╨╡ ╨╛╨┐╨╗╨░╤é╤ï",
  13.             "SQL": "select distinctrow [|T00193].[|F00154], sum([|T00193].[|F02271]) as [|S00006] FROM [|T00193] GROUP BY [|T00193].[|F00154];"
  14.         },
  15.         {
  16.             "QueryID": 3,
  17.             "DatabaseTypeID": 3,
  18.             "QueryName": "╨¥╨╡╨╛╨┐╨╗╨░╤ç╨╡╨╜╨╜╤ï╨╡ ╤ü╤ç╨╡╤é╨░",
  19.             "SQL": "SELECT DISTINCTROW [|T00013].[|F00353], [|T00192].[|F03082], [|T00013].[|F00359], [|T00013].[|F03030], Sum(Clng([|F00324]*[|F02149]*(1-[|F00356])*100)/100) AS [|S00007], [|Q00004].[|S00006]\r\nFROM [|T00192] INNER JOIN (([|T00013] LEFT JOIN [|Q00004] ON [|T00013].[|F00154] = [|Q00004].[|F00154]) LEFT JOIN [|T00056] ON [|T00013].[|F00154] = [|T00056].[|F00154]) ON [|T00192].[|F01579] = [|T00013].[|F01579]\r\nGROUP BY [|T00013].[|F00353], [|T00192].[|F03082], [|T00013].[|F00359], [|T00013].[|F03030], [|Q00004].[|S00006];"
  20.         },
  21.         {
  22.             "QueryID": 4,
  23.             "DatabaseTypeID": 10,
  24.             "QueryName": "╨ù╨░╨┐╤Ç╨╛╤ü ╨┐╨╛ ╤ü╤â╨╝╨╝╨╡ ╨╛╨┐╨╗╨░╤é╤ï",
  25.             "SQL": "SELECT DISTINCTROW [|T00193].[|F03121], Sum([|T00193].[|F02271]) AS [|S00006] FROM [|T00193] GROUP BY [|T00193].[|F03121];"
  26.         },
  27.         {
  28.             "QueryID": 5,
  29.             "DatabaseTypeID": 18,
  30.             "QueryName": "╨ö╨╛╨▒╨░╨▓╨╗╨╡╨╜╨╕╨╡ ╤â╤ç╨╡╨╜╨╕╨║╨╛╨▓ ╨╜╨╡ ╨╕╨╖ ╤ü╨┐╨╕╤ü╨║╨░",
  31.             "SQL": "SELECT DISTINCTROW [|T00383].[|F02912], [|T00384].[|F03202]\r\nFROM [|T00383] INNER JOIN [|T00384] ON [|T00383].[|F02913] = [|T00384].[|F02913]\r\nWHERE (([|T00384].[|F02913]=[forms]![|P00120]![|F02913]));"
  32.         },
  33.         {
  34.             "QueryID": 6,
  35.             "DatabaseTypeID": 18,
  36.             "QueryName": "╨ö╨╛╨▒╨░╨▓╨╗╨╡╨╜╨╕╨╡ ╤â╤ç╨╡╨╜╨╕╨║╨╛╨▓ ╨║ ╤Ç╨╡╨╖╤â╨╗╤î╤é╨░╤é╨░╨╝",
  37.             "SQL": "INSERT INTO [|T00385] ( [|F02912], [|F03202] )\r\nSELECT DISTINCTROW [|Q00005].[|F02912], [|Q00005].[|F03202]\r\nFROM [|T00385] RIGHT JOIN [|Q00005] ON ([|T00385].[|F03202] = [|Q00005].[|F03202]) AND ([|T00385].[|F02912] = [|Q00005].[|F02912])\r\nWHERE (([|Q00005].[|F03202]=[forms]![|P00120]![|C01854]) AND ([|T00385].[|F02912] Is Null));"
  38.         },
  39.         {
  40.             "QueryID": 7,
  41.             "DatabaseTypeID": 18,
  42.             "QueryName": "╨í╤â╨╝╨╝╨░╤Ç╨╜╤ï╨╡ ╨┐╤Ç╨╛╤å╨╡╨╜╤é╤ï ╨╖╨░╨╜╤Å╤é╨╕╨╣",
  43.             "SQL": "SELECT DISTINCTROW [|T00383].[|F02912], [|T00384].[|F02913], Sum(([|T00385].[|F03213]/[|T00384].[|F03205])*[|T00384].[|F03204]) AS [|S00016]\r\nFROM [|T00384] INNER JOIN ([|T00385] INNER JOIN [|T00383] ON [|T00385].[|F02912] = [|T00383].[|F02912]) ON ([|T00384].[|F03202] = [|T00385].[|F03202]) AND ([|T00384].[|F02913] = [|T00383].[|F02913])\r\nGROUP BY [|T00383].[|F02912], [|T00384].[|F02913];"
  44.         },
  45.         {
  46.             "QueryID": 8,
  47.             "DatabaseTypeID": 9,
  48.             "QueryName": "╨º╨╕╤ü╨╗╨╛ ╨┐╨╛╤ü╨╡╤é╨╕╤é╨╡╨╗╨╡╨╣ ╨╝╨╡╤Ç╨╛╨┐╤Ç╨╕╤Å╤é╨╕╤Å",
  49.             "SQL": "SELECT DISTINCTROW [|T00386].[|F00156], Count([|T00386].[|F03217]) AS [|S00018]\r\nFROM [|T00386]\r\nGROUP BY [|T00386].[|F00156];"
  50.         },
  51.         {
  52.             "QueryID": 9,
  53.             "DatabaseTypeID": 9,
  54.             "QueryName": "╨ù╨░╨┐╤Ç╨╛╤ü ╨┐╨╛ ╤ü╤â╨╝╨╝╨╡ ╨╛╨┐╨╗╨░╤é╤ï",
  55.             "SQL": "SELECT DISTINCTROW [|T00193].[|F03217], Sum([|T00193].[|F02271]) AS [|S00006]\r\nFROM [|T00193]\r\nGROUP BY [|T00193].[|F03217];"
  56.         },
  57.         {
  58.             "QueryID": 10,
  59.             "DatabaseTypeID": 9,
  60.             "QueryName": "╨ÿ╤é╨╛╨│╨╕ ╤Ç╨╡╨│╨╕╤ü╤é╤Ç╨░╤å╨╕╨╕ ╨┐╨╛╤ü╨╡╤é╨╕╤é╨╡╨╗╨╡╨╣",
  61.             "SQL": "SELECT DISTINCTROW [|T00386].[|F03219], Count([|T00386].[|F03217]) AS [|S00020]\r\nFROM [|T00386]\r\nGROUP BY [|T00386].[|F03219];"
  62.         },
  63.         {
  64.             "QueryID": 11,
  65.             "DatabaseTypeID": 5,
  66.             "QueryName": "╨í╤â╨╝╨╝╤ï ╨╖╨░ ╤Ç╨╡╤ü╤â╤Ç╤ü╤ï ╨┐╨╛ ╨╖╨░╨║╨░╨╖╨░╨╝",
  67.             "SQL": "SELECT DISTINCTROW [|T00400].[|F03262], Sum([|F02304]*[|F03273]) AS [|S00022]\r\nFROM [|T00400]\r\nGROUP BY [|T00400].[|F03262];"
  68.         },
  69.         {
  70.             "QueryID": 12,
  71.             "DatabaseTypeID": 5,
  72.             "QueryName": "╨í╤â╨╝╨╝╤ï ╨╖╨░ ╨╛╨▒╨╛╤Ç╤â╨┤╨╛╨▓╨░╨╜╨╕╨╡ ╨┐╨╛ ╨╖╨░╨║╨░╨╖╨░╨╝",
  73.             "SQL": "SELECT DISTINCTROW [|T00399].[|F03262], Sum([|F00324]*[|F02149]) AS [|S00023]\r\nFROM [|T00399]\r\nGROUP BY [|T00399].[|F03262];"
  74.         },
  75.         {
  76.             "QueryID": 13,
  77.             "DatabaseTypeID": 5,
  78.             "QueryName": "╨ù╨░╨┐╤Ç╨╛╤ü ╨┐╨╛ ╤ü╤â╨╝╨╝╨╡ ╨╛╨┐╨╗╨░╤é╤ï",
  79.             "SQL": "SELECT DISTINCTROW [|T00193].[|F03262], Sum([|T00193].[|F02271]) AS [|S00006]\r\nFROM [|T00193]\r\nGROUP BY [|T00193].[|F03262];"
  80.         },
  81.         {
  82.             "QueryID": 14,
  83.             "DatabaseTypeID": 20,
  84.             "QueryName": "╨á╨░╤ü╤à╨╛╨┤╤ï ╨┐╨╛ ╨┐╤Ç╨╛╨╡╨║╤é╨░╨╝",
  85.             "SQL": "SELECT DISTINCTROW [|T00406].[|F02862], Sum([|T00406].[|F03292]) AS [|S00037]\r\nFROM [|T00406]\r\nGROUP BY [|T00406].[|F02862];"
  86.         },
  87.         {
  88.             "QueryID": 15,
  89.             "DatabaseTypeID": 20,
  90.             "QueryName": "╨á╨░╤ü╤à╨╛╨┤╤ï ╨┐╨╛ ╨┐╤Ç╨╛╨╡╨║╤é╨░╨╝ ╨╕ ╨┤╨╕╨░╨┐╨░╨╖╨╛╨╜╨░╨╝ ╨┤╨░╤é",
  91.             "SQL": "SELECT DISTINCTROW [|T00406].[|F02862], Sum([|T00406].[|F03292]) AS [|S00037]\r\nFROM [|T00406]\r\nWHERE (([|T00406].[|F02996]>=[forms]![|P00295]![|C02559] And [|T00406].[|F02996]<=[forms]![|P00295]![|C02560]))\r\nGROUP BY [|T00406].[|F02862];"
  92.         },
  93.         {
  94.             "QueryID": 16,
  95.             "DatabaseTypeID": 20,
  96.             "QueryName": "╨º╨░╤ü╤ï ╨┐╨╛ ╨┐╤Ç╨╛╨╡╨║╤é╨░╨╝",
  97.             "SQL": "SELECT DISTINCTROW [|T00409].[|F02862], Sum([|T00409].[|F02304]) AS [|S00038], Sum([|F02304]*[|F03273]) AS [|S00040]\r\nFROM [|T00409]\r\nGROUP BY [|T00409].[|F02862];"
  98.         },
  99.         {
  100.             "QueryID": 17,
  101.             "DatabaseTypeID": 20,
  102.             "QueryName": "╨ù╨░╨┐╤Ç╨╛╤ü ╨┐╨╛ ╤ü╤â╨╝╨╝╨╡ ╨╛╨┐╨╗╨░╤é╤ï",
  103.             "SQL": "SELECT DISTINCTROW [|T00193].[|F02862], Sum([|T00193].[|F02271]) AS [|S00006]\r\nFROM [|T00193]\r\nGROUP BY [|T00193].[|F02862];"
  104.         },
  105.         {
  106.             "QueryID": 18,
  107.             "DatabaseTypeID": 8,
  108.             "QueryName": "╨Æ╤Ç╨╡╨╝╨╡╨╜╨░╨á╨░╤ü╨┐╨╕╤ü╨░╨╜╨╕╤Å",
  109.             "SQL": "PARAMETERS [|S00032] DateTime, [|S00033] DateTime, [|S00237] Long;\r\nSELECT DISTINCTROW [|T00403].[|F03278], [|T00403].[|F03279], [|T00332].[|F02981], [|T00332].[|F02977], [|T00332].[|F03276]\r\nFROM [|T00332] INNER JOIN [|T00403] ON [|T00332].[|F02981] = [|T00403].[|F02981]\r\nWHERE ((([|T00332].[|F02977])=[|S00237]) AND (([|T00332].[|F03276])>=[|S00032] And ([|T00332].[|F03276])<=[|S00033]));"
  110.         },
  111.         {
  112.             "QueryID": 19,
  113.             "DatabaseTypeID": 18,
  114.             "QueryName": "╨ƒ╨╛╨┤╤ç╨╕╨╜╨╡╨╜╨╜╤ï╨╣ ╨╖╨░╨┐╤Ç╨╛╤ü ╨┐╨╛╨┤╤ç╨╕╨╜╨╡╨╜╨╜╨╛╨╣ ╤ä╨╛╤Ç╨╝╤ï ╤ü╤é╤â╨┤╨╡╨╜╤é╨╛╨▓",
  115.             "SQL": "SELECT DISTINCTROW [|T00383].*, [|Q00007].[|S00016]\r\nFROM [|Q00007] RIGHT JOIN [|T00383] ON ([|Q00007].[|F02912] = [|T00383].[|F02912]) AND ([|Q00007].[|F02913] = [|T00383].[|F02913]);"
  116.         },
  117.         {
  118.             "QueryID": 20,
  119.             "DatabaseTypeID": 3,
  120.             "QueryName": "╨ƒ╨╛╨┤╤ç╨╕╨╜╨╡╨╜╨╜╤ï╨╣ ╨╖╨░╨┐╤Ç╨╛╤ü ╨┐╤Ç╨╛╨┤╨░╨╢ ╨┐╨╛ ╨║╨╗╨╕╨╡╨╜╤é╨░╨╝",
  121.             "SQL": "SELECT DISTINCTROW [|T00013].[|F01579], [|T00013].[|F00352], [|T00013].[|F00359], [|T00013].[|F03030], Sum(CLng([|F00324]*[|F02149]*(1-[|F00356])*100)/100) AS [|S00004], Sum([|T00056].[|F00324]) AS [|S00002]\r\nFROM [|T00013] LEFT JOIN [|T00056] ON [|T00013].[|F00154] = [|T00056].[|F00154]\r\nGROUP BY [|T00013].[|F01579], [|T00013].[|F00352], [|T00013].[|F00359], [|T00013].[|F03030];"
  122.         },
  123.         {
  124.             "QueryID": 22,
  125.             "DatabaseTypeID": 3,
  126.             "QueryName": "╨ƒ╨╛╨┤╤ç╨╕╨╜╨╡╨╜╨╜╤ï╨╣ ╨╖╨░╨┐╤Ç╨╛╤ü ╨┐╤Ç╨╛╨┤╨░╨╢ ╨┐╨╛ ╤ü╨╛╤é╤Ç╤â╨┤╨╜╨╕╨║╨░╨╝",
  127.             "SQL": "SELECT DISTINCTROW [|T00013].[|F01122], [|T00013].[|F00352], [|T00013].[|F00359], [|T00013].[|F03030], Sum(CLng([|F00324]*[|F02149]*(1-[|F00356])*100)/100) AS [|S00004], Sum([|T00056].[|F00324]) AS [|S00002]\r\nFROM [|T00013] LEFT JOIN [|T00056] ON [|T00013].[|F00154] = [|T00056].[|F00154]\r\nGROUP BY [|T00013].[|F01122], [|T00013].[|F00352], [|T00013].[|F00359], [|T00013].[|F03030];"
  128.         }
  129.     ]
  130. }