Question: Im learning wordpress and I am using this youtube tutorial as reference <https://www.youtube.com/watch?v=fZCFRQAcqLU>

Im trying to convert my php code from 

```
<link href="style.css" rel="stylesheet">

```

to

```
<link <?php bloginfo('stylesheet_url'); ?>rel="stylesheet">

```

After conversion, the page returns a blank page. I noticed that I cant use any php tags for this and I dont know why. it is already in my C:\xampp\htdocs\wordpress\wp-content\themes\wpbootstrap\_master\index.php file. Any my Xamp is running fine. Help please

Answer: 
Check This.

```
    select * from mydata 
    union 
    select (Client ||'_Total') Client 
    ,SUM(Billing)sum from mydata 
    group by Client 
    order by Client

```
To order the "Total" columns correctly, you have to keep the client name so that you can sort by it later; the `OrderNr` column is used to sort the totals after the other rows of the same client:

```
SELECT DisplayName AS Client,
       Billing
FROM (SELECT Client AS DisplayName,
             Client,
             Billing,
             1 AS OrderNr
      FROM MyTable

      UNION ALL

      SELECT 'Total',
             Client,
             sum(Billing),
             2 AS OrderNr
      FROM MyTable
      GROUP BY Client)
ORDER BY Client,
         OrderNr;

```