# How do I design a calendar like Google calendar?

```
SELECT * FROM events WHERE id = 3 OR parentid = 3
```

```
SELECT * FROM events WHERE startdate >= "2008-08-01" AND enddate <= "2008-08-31"
```

Source: By public static as answer to the question

This code snippet was collected from stackoverflow, and is licensed under CC BY-SA 2.5

##### Related code-snippets:

- How can I get the value of in a loop?
- Function for creating color wheels.
- What is the most efficient code for 10000 prime numbers?
- How can we efficiently get sorted sums of a sorted list?
- "Sorting" colors by distinctiveness. Followup:
- What is the best way to calculate Big O?
- Graph serialization is a form of graph serialization.
- Find largest rectangle in cubic cm (middle rectangle problem)!
- Looking for algorithm that reverses the sprintf() function output?
- Making human readable representations of an integer. This implies that a number is infinite (i.e. infinite number) and that the values of integer are equal to the number of numbers.
- How can I optimize search algorithms in C language?
- What are some effective ways to compare float and double comparisons?
- Is there a way to separate game logic from display?
- What's the best word wrap algorithm?
- Algorithm to perform RFC calculation in Java. Algorithm to perform RFC calculation by using RFC algorithm in Java.