English 中文(简体)
查阅记录栏目
原标题:Querying Access to form columns from records

在工作上,我们获得一个名册,该名册历来保存在一本巨大的Excel工作手册中。 由于工作人员的变化,这种局面变得非常脆弱,因此,我试图作为准入数据库,大力加以执行。

Ive got a table of People (fields include name and some other characteristics of people) and a table of Vacations - eachave has a person_ ID, astartdate and an enddate.

我最理想的是能够从中获益的是像我们在Excel工作手册中那样的名册网:

Date    Person A    Person B    Person C
01 Jan  -           -           -
02 Jan  -           -           -
03 Jan  VAC         -           -
04 Jan  VAC         VAC         -
05 Jan  VAC         VAC         -
06 Jan  -           VAC         -
07 Jan  -           -           -
08 Jan  -           -           -
09 Jan  -           -           -

(例如,Vactions表有两份记录——一份是A个人记录,一份是B个人记录)。

这种事情是有可能的? 或者,我是否要写一些法典?

感谢!

最佳回答

我建议

  • Building 日期表(每当你再次可能使用时,可浏览的表格) 01/01/2000 to 31/12/2020

  • 在本表的帮助下,形成了一种观点,即列出每个人的每个日期,并表明该人是否在休假(假日与假日之间和休假人之间加入)

  • 如今是骗局。 现在,你需要建立交叉问题......,但可以不易获得(假装使用,但可能错失)。

  • However, 我建议 building the view in the 2nd step above and then using the power of Excel to build a pivot table of the data for you. Link your Excel spreadsheet to your Access database and every time your user needs a refresh of the data, they, urm, refresh it!

HTH

问题回答

你们可以这样做,在获得数据方面有一个初步表格,但显示像这种数据一样,是一种典型的“进入/数据库的机会”症状。

Mild Tangent

总是有人告诉我,在数据库中,只有3个数字0、1和5,其中只有2至3个。 显示这样的数据,如果你有少量工作人员,但当获得50或300名工作人员时,情况如何? 我将研究以不同的方式显示数据,可能是一种互动形式或其他类型的动态显示。 如果是纸面文件,则可能会有某种报告按人分类?

/Mild Tangent





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

难以执行 REGEXP_SUBSTR

I m 查询Oracle 10g。 我有两张表格(样本数据见下文)。 i m 试图提取一些领域

SQL Query Shortcuts

What are some cool SQL shorthands that you know of? For example, something I learned today is you can specify to group by an index: SELECT col1, col2 FROM table GROUP BY 2 This will group by col2

PHP array callback functions for cleaning output

I have an array of output from a database. I am wondering what the cleanest way to filter the values is example array Array ( [0] => Array ( [title] => title 1 ...

OracleParameter and DBNull.Value

we have a table in an Oracle Database which contains a column with the type Char(3 Byte). Now we use a parameterized sql to select some rows with a DBNull.Value and it doesn t work: OracleCommand ...

Running numbers in SQL

I have a SQL-statement like this: SELECT name FROM users WHERE deleted = 0; How can i create a result set with a running number in the first row? So the result would look like this: 1 Name_1 2 ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签