Scholieren.com forum

Scholieren.com forum (https://forum.scholieren.com/index.php)
-   Software & Hardware (https://forum.scholieren.com/forumdisplay.php?f=20)
-   -   [MSSQL] Gegevens uit twee kolommen tellen en tonen (https://forum.scholieren.com/showthread.php?t=1940388)

MarcDV 21-01-2018 18:46

[MSSQL] Gegevens uit twee kolommen tellen en tonen
 
Hallo.. hoe kan ik MySQL code omzetten in MSSQL ?

SELECT
GROUP_CONCAT(DISTINCT beller) bellers,
gebelde,
COUNT(1) aantal
FROM gesprekken
GROUP BY gebelde
ORDER BY aantal DESC

Dank...

thomas98 27-02-2018 20:30

Hoi Marc,

Heb je gekeken naar conversie tools die te verkrijgen is online?
Zoek bijv. naar 'convert MySQL to Microsoft SQL'

Een mogelijke tool die handig voor je kan zijn is: https://dbconvert.com/mysql/mssql/

suc6!

mikkienn 05-04-2018 14:34

CONCAT(`name`, ' ', `email`) as password_email FROM `table`;

SELECT CONCAT(`firstname`, ' ', `lastname`) as Name
FROM Employees;

SELECT EmployeeID, CONCAT(`firstname`, ' ', `lastname`) as Name
FROM Employees;

<style>
body {background: linear-gradient(to right, red, blue, green);} </style>


Alle tijden zijn GMT +1. Het is nu 08:00.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.