9136.html

来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 31 行

HTML
31
字号
<html>
  <head>
    <title>Re: SQL又要如何下??</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: SQL又要如何下??</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by JUTSO on January 13, 1999 at 09:22:56:<p>
In Reply to: <a href="9135.html">Re: SQL又要如何下??</a> posted by jutso on January 13, 1999 at 09:06:17:<p>
: : :    建议你用 sql 先建个表,再交给 crystal 印,不要用 crystal 的 formula !<br>: : RE:<br>: : 我有试过但选不出我所要的,可能功力不够,那用SQL又要如何下才能选出我要的资料呢?范例或关键的SQL指令...期待!!!<p>:     上面的有点错误,改正如下:<p>: query1:<br>: SELECT Last(invoice.date) AS lastdate, invoice.invoiceno<br>: FROM invoice<br>: GROUP BY invoice.invoiceno;<p>: SELECT invoice.*<br>: FROM invoice LEFT JOIN query1 ON invoice.invoiceno = query1.invoiceno<br>: WHERE invoice.date=query1.lastdate;<p>    又搞错了!这样才对:<br>SELECT Last(invoice.date) AS lastdate, invoice.invoiceno, last(debit), last(credit), last(invoice.balance)<br>FROM invoice<br>GROUP BY invoice.invoiceno;<br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 9136-->
<!--top: 9163--><li><a href="9163.html">*** To JUTSO</a> <b>Someone</b> <i>15:59:47 1/13/99</i>
(<!--responses: 9163-->0)
<ul><!--insert: 9163-->
</ul><!--end: 9163-->
<!--top: 9162--><li><a href="9162.html">*** To JUTSO</a> <b>Someone</b> <i>15:59:36 1/13/99</i>
(<!--responses: 9162-->0)
<ul><!--insert: 9162-->
</ul><!--end: 9162-->
</ul><!--end: 9136-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?