| The Arcive of vBulletin Modifications Site. | |
| 
			 
			#1  
			
			
			
			
			
		 | |||
| 
 | |||
|  SQL Query needed... 
			
			Hi!   I'm looking for a SQL query which will give me a list of all the users that have made a post on a certain day. It would be even better if the list contained no duplicate usernames (because the user posted more than once..) Can anybody help? Thanks! | 
| 
			 
			#2  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			[sql]SELECT username FROM post WHERE dateline > <timestampbeginofday> AND dateline > <timestampendofday> GROUP BY username[/sql]
		 | 
| 
			 
			#3  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			instead of group by, i'd use distinct: [sql]SELECT DISTINCT username FROM post WHERE dateline > <timestampbeginofday> AND dateline > <timestampendofday>[/sql] | 
| 
			 
			#4  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			Thanks for those! I'm sorry to sound extra slow, but how I'd define a timestamp in which format? Say I wanted to get a list of users that posted from 00:01 to 23:59 Thanks once more! <3 | 
|  | 
| 
 | 
 | 
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
| 
 | |
|  More Information | |
| Template Usage: 
 Phrase Groups Available: 
 | Included Files: 
 Hooks Called: 
 |