473,372 Members | 991 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

select week in date


i have face a problem in mysql .i have a table register and have a field


so i have want to select uid by weekly,means whose registration in current week
so plz help me and find the solution

Dec 18 '06 #1
3 5221
4,258 Expert 4TB
Depending on what day your week (Sunday or Monday) starts this could do it:
Expand|Select|Wrap|Line Numbers
  1. SELECT * FROM table 
  2. WHERE DATE_FORMAT(date, "%u") = DATE_FORMAT(curdate(), "%u");
Ronald :cool:
Dec 18 '06 #2
tnxx for this soln

one question or more

mysql support foriegn key or not, if not then what is the alternative.
and support constraiont or not plz reply me

Dec 21 '06 #3
4,258 Expert 4TB
You have already started a new thread in this forum with that last question. Don't overdo it!

Ronald :cool:
Dec 21 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

by: bad | last post by:
ive two variables the year and the week (2003 and 5) that means the 5th week of the year 2003. now i need the start- and enddate of the 5th week of year 2003. i hope someone can help me to...
by: androtech | last post by:
Hello, I'm looking for a function that returns a date range for a specified week number of the year. I'm not able to find functions like this anywhere. Any pointers/help would be much...
by: hikums | last post by:
how can I use a function inside a function, for example I want to select col1, col2 from table1 where locate(dayofweek(current date),col3) =dayofweek(current date) col3 is a field that contains a...
by: Matt | last post by:
Given a date, how to find the beginning date and ending date of that week please advise!
by: Lee Harr | last post by:
I wrote a function to return the first date of a given week (and a few related functions) : -- return the first date in the given week CREATE or REPLACE FUNCTION week_start(integer, integer)...
by: Tina | last post by:
My employer tracks productivity/performance of clinicians (how much they bill) each week, its averages for the month, and the 6 months. These averages are compared to their expected productivity....
by: aarklon | last post by:
Hi folks, I found an algorithm for calculating the day of the week here:- http://www.faqs.org/faqs/calendars/faq/part1/index.html in the section titled 2.5 what day of the week was 2 august...
by: jessDMiller | last post by:
I need to output data for today and the following week. Here is what I have: // Get all the data from the table $result = mysql_query("SELECT * FROM $table where curdate() >= day AND...
by: cmartin1986 | last post by:
First of all I want to thank all of you that have helped me in the past this is an awesome fourm. My problem today is I have a database that builds charts that are viewed by a large group every...
by: kropinek | last post by:
Hello! I have got: SELECT char(week_iso(current date)) FROM sysibm.sysdummy1 +------------+ | 00001 | +------------+ | 45 | +------------+
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.