First of all: Not the whole sentence is in any case, only some parts of it are in a case. Here is an example where all 4 cases appear in just one sentences:
Elisabeths Eltern glauben ihrer Tochter die Ausrede.
- Elisabeths Eltern
Subject in nominative case
- Elisabeths
Genitive Attribute of the noun Eltern
- ihrer Tochter
Dative object of the verb glauben
- die Ausrede
Accusative object of the verb glauben
This sentence is wrong:
Zwischen dem Sofa und dem Sessel hat sie einen Tisch gestellt.
These are correct sentences:
Zwischen dem Sofa und dem Sessel hat sie einen Tisch stehen.
She has a table between the sofa and the chair.
Zwischen dem Sofa und dem Sessel hat sie einen Tisch aufgestellt.
She has set up a table between the sofa and the chair.
Zwischen das Sofa und den Sessel hat sie einen Tisch gestellt.
She put a table between the sofa and the chair.
The main difference between dative and accusative case is this:
- Dative case describes a place, not a direction.
- Accusative case describes a direction, not a place.
So, when ever you move something into a certain direction (for example between some other furnitures) you need to have this direction in accusative case:
Jürgen stellt die Lampe auf den Tisch.
Jürgen puts the lamp on the table.
Ilse legt das Hemd in den Koffer.
Ilse puts the shirt in the suitcase.
But when you describe, that something is at a certain place, you have to use dative case:
Die Lampe steht auf dem Tisch.
The lamp is on the table.
Das Hemd liegt in dem Koffer.
The shirt is in the suitcase.
Wenn you move the table between sofa and chair, then you describe a direction and then you need accusative case:
Zwischen das Sofa und den Sessel hat sie einen Tisch gestellt.
She put a table between the sofa and the chair.
This is because the verb stellen describes a movement into a direction.
But the verb aufstellen (to mount, to erect, to assemble) means that you assemble the table at a given place, i.e. not into a direction., and the verb stehen means, that it stands at a given place, i.e. not into a direction. So, for stehen and aufstellen you need dative case.
Zwischen dem Sofa und dem Sessel hat sie einen Tisch stehen.
She has a table between the sofa and the chair.
Zwischen dem Sofa und dem Sessel hat sie einen Tisch aufgestellt.
She has set up a table between the sofa and the chair.