HelloI'm trying to get a count function to work with two different tables and having a bit of trouble. here is the table layoutBROWSER HOME tableFACT_KEY FACTKEY_BROWSER_TITLE-------- --------1 Home Page2 About Us3 Contact Us
That is the table with the Browser Title that I need Next is the table that I need to count LOG_USER tableLOG_KEY LOG_BROWSER----------- --------------------------------------------------253 Contact us254 Home Page256 Contact us257 Home Page261 Home Page263 Home Page277 Home Page279 Home Page280 Home Page281 Home Page282 Home Page283 Home Page275 About Us248 Contact Us322 Contact us
The results should look like something like this BROWSER COUNT----------- --------------------------------------------------HomePage 10About Us 1Contact us 4
So far this is what I haveSELECT count(LOG_BROWSER) as countFROM dbo.LOG_USERWHERE dbo.LOG_USER.LOG_BROWSER = 'Home Page'
but I need all of the BROWSER column and to do a count for all column as wellthanks in advance!