---
title: "extract(Hours"
type: "forum-thread"
url: "https://www.webforum.nu/amne/databaser-sql/92982-extract-hours"
topic: "Databaser & SQL"
topic_url: "https://www.webforum.nu/amne/databaser-sql"
author: "firstchoice"
published: "2003-12-18T11:21:35.000Z"
updated: "2003-12-18T11:22:52.000Z"
replies: 1
views: 136
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/databaser-sql/92982-extract-hours"
---

# extract(Hours

## #1 — firstchoice, 2003-12-18T11:21Z

varför fungerar det inte med "Hour" ?

```
Select COUNT(*) AS DAYCOUNT From tbllog where extract(year from logcreationdate) = " & year & " and extract(Month from logCreationDate) = " & month & " and extract(Day from logCreationDate) = " & day & " and extract(Hours from logCreationDate) = " & Hour(Now)
```

Permalänk: https://www.webforum.nu/p/92982

## #2 — firstchoice, 2003-12-18T11:22Z

jag skall nog hålla tyst :)
kan vara bra att kolla stavningen
extract(**Hours** from logCreationDate) = " & Hour(Now)

skall ju bara vara Hour \*oops\*

Permalänk: https://www.webforum.nu/p/1230922

---

Tråden på webben: https://www.webforum.nu/amne/databaser-sql/92982-extract-hours
